import { Component } from '@angular/core';
import { Observable } from 'rxjs';
import { CartService } from '../services/cart/cart.service';
import { Shipping } from '../shipping';

@Component({
  selector: 'app-shipping',
  templateUrl: './shipping.component.html',
  styleUrls: ['./shipping.component.css']
})
export class ShippingComponent {

  shippingPrice!: Observable<Shipping[]>;

  constructor(
    private cartService: CartService
  ) {}

  ngOnInit() {
    this.shippingPrice = this.cartService.getShippingPrices();
  }
}
